#include <stdio.h>
#include "structs.h"
INPUT DocFile(){	
	INPUT inp;	
	PROCESS p;	
	int i;
	FILE *f;
	// mo file
	f = fopen("CPU.txt","rt");
	//lay so processchar tenProcess;
	 
	fscanf(f,"%d",&inp.soProcess);	
	//lay cac thong so cua process
	for(i=0;i<inp.soProcess;i++)
	{			
		fscanf(f,"%d",&p.tenProcess);
		fscanf(f,"%d",&p.thoiDiemVaoHT);
		fscanf(f,"%d",&p.thoiDiemVaoRQ);
		fscanf(f,"%d",&p.thoiGianXuLy);
		inp.pro[i]=p;
	}			
	fclose(f);
	return inp;
}
